<template>
	<view class="webview">
		<u-navbar :is-back="true"></u-navbar>
		<web-view :src="url" :fullscreen="false"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				url: ""
			}
		},
		onLoad(option) {
			this.url = decodeURIComponent(option.url);
		},
		onReady() {
			// #ifdef APP-PLUS
			const currentWebview = this.$scope.$getAppWebview()
			this.pageTitle = uni.getAppBaseInfo().appName
			setTimeout(function() {
				const top = uni.getSystemInfoSync().statusBarHeight + 44
				const wv = currentWebview.children()[0]
				wv.setStyle({
					top
				})
			}, 100);
			// #endif
		},
		methods: {
		}
	}
</script>

<style lang="scss" scoped>

</style>
